package com.teckteam.ptvsystem.controller;

import com.teckteam.ptvsystem.view.JourneyPlanner;

/**
 * Exception class for handling form validation (usability)
 *
 */
public class JourneyPlanException extends Exception
{
   public JourneyPlanException(String message, JourneyPlanner jpDialog)
   {
      jpDialog.setError(message);
   }

   public JourneyPlanException()
   {
      // do nothing; catch block handled
   }
}
